/**
*    Copyright (C) 2008  Chase Kernan 
*    chase.kernan@gmail.com
*
*    This program is free software: you can redistribute it and/or modify
*    it under the terms of the GNU General Public License as published by
*    the Free Software Foundation, either version 3 of the License, or
*    (at your option) any later version.
*
*    This program is distributed in the hope that it will be useful,
*    but WITHOUT ANY WARRANTY; without even the implied warranty of
*    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
*    GNU General Public License for more details.
*
*    You should have received a copy of the GNU General Public License
*    along with this program.  If not, see <http://www.gnu.org/licenses/>.
* 
**/

package com.chasekernan.hxnova.testing;

#if unit
import com.chasekernan.hxnova.utils.IntVector;
import haxe.unit.TestRunner;
import com.chasekernan.hxnova.utils.Rectangle;
import com.chasekernan.hxnova.utils.Utils;
import com.chasekernan.hxnova.utils.VarLoader;
import com.chasekernan.hxnova.utils.XmlBuilder;
import com.chasekernan.hxnova.core.stars.Concentrations;
import com.chasekernan.hxnova.core.stars.Environment;
import com.chasekernan.hxnova.core.stars.Star;
import com.chasekernan.hxnova.core.dataholders.Global;
import com.chasekernan.hxnova.core.dataholders.Players;
import com.chasekernan.hxnova.core.players.Player;
import com.chasekernan.hxnova.core.races.Race;
import com.chasekernan.hxnova.utils.Vector;
import com.chasekernan.hxnova.core.minerals.MineralSet;

class Main {
    
    public static var TEST_VARIABLE = 5;
    
    public static var runner : TestRunner;
    
    public static function main() {
        
        trace(XmlBuilder.getUnderscoreVersion("test1"));
        
        runner = new TestRunner();
        
        testUtils();
        testStars();
        
        /**
        runner.add(new MineralSetTest());
        runner.add(new ConcentrationsTest());
        runner.add(new EnvironmentTest());
        runner.add(new TechLevelTest());
        runner.add(new ResearchCostsTest());
        runner.add(new HabSettingTest());
        runner.add(new SalvageTest());
        */
        runner.run();
        
    }
    
    private static function testUtils() {
        runner.add(new IntVectorTest());
        runner.add(new RectangleTest());
        runner.add(new UtilsTest());
        runner.add(new VarLoaderTest());
        runner.add(new XmlBuilderTest());
    }
    
    private static function testStars() {
        runner.add(new ConcentrationsTest());
        runner.add(new EnvironmentTest());
        runner.add(new StarTest());
    }
    
}
#end